﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using AG.Editor.Core;

namespace AG.Editor.Windows
{
    public partial class AGSettingWindow : Form
    {
        public AGSettingWindow()
        {
            InitializeComponent();

            _ctlCheck2PNG.Checked = AGEContext.Current.Settings.ConvertToPNGBlackTransparent;
        }

        private void _ctlBtnOK_Click(object sender, EventArgs e)
        {
            AGEContext.Current.Settings.ConvertToPNGBlackTransparent = _ctlCheck2PNG.Checked;
            AG.Editor.Core.AGTools.Current.SettingsStore.SaveSettings(AG.Editor.Core.AGEContext.Current.Settings);
            DialogResult = System.Windows.Forms.DialogResult.OK;
        }
    }
}
